import {createMemoryHistory, createRouter} from 'vue-router'

import Son from '@/components/3命名路由/1.子组件.vue'



// 定义路由路径
const routes = [
    {
        path: '/a',
        name: 'a',
        component: Son
    },
]

const router = createRouter({
    history: createMemoryHistory(),
    routes,
})

export default router